package com.kx.yooli.kx.wechat.service;

import jakarta.mail.MessagingException;

/**
 * @author john_sqwen-childe.wen
 * date 2024/6/13
 * PROJECT_NAME wechat
 * description create IEmailService by john_sqwen
 * and  value is
 */
public interface IEmailService {
    /**
     * 检测邮件信息类
     * @param to
     * @param subject
     * @param text
     */
     void checkMail(String to,String subject,String text);
    /**
     * 发送纯文本邮件
     * @param to
     * @param subject
     * @param text
     */
    void sendTextMailMessage(String to,String subject,String text);
    /**
     * 发送HTML格式的邮件
     *
     * @param to      接收方
     * @param subject 邮件主题
     * @param content HTML格式的邮件内容
     * @throws MessagingException
     */
    void sendHtmlMail(String to, String subject, String content) throws MessagingException;
    /**
     * 发送HTML格式的邮件，并可以添加附件
     * @param to      接收方
     * @param subject 邮件主题
     * @param content HTML格式的邮件内容
     * @param files   附件
     * @throws MessagingException
     */
    void sendAttachmentsMail(String to, String subject, String content, String files) throws MessagingException;
    String sendAttachmentsMail(String mobile,String mail) throws MessagingException;
}
